home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Frameworks / TransSkel 3.24 / Source / Dialog Item Stuff / SkelSetDlogStr.c < prev    next >
Text File  |  1996-01-17  |  319b  |  19 lines

  1. /*
  2.  * Set text of a dialog item.  The value is passed or returned
  3.  * as a string, not a buffer/length combination.
  4.  */
  5.  
  6. # include    "TransSkel.h"
  7.  
  8.  
  9. pascal void
  10. SkelSetDlogStr (DialogPtr d, short item, StringPtr str)
  11. {
  12. short    type;
  13. Handle    h;
  14. Rect    r;
  15.  
  16.     GetDialogItem (d, item, &type, &h, &r);
  17.     SetDialogItemText (h, str);
  18. }
  19.